home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / MuFS_do_logout / DO_LOGOUT.txt < prev    next >
Text File  |  1996-02-04  |  3KB  |  67 lines

  1. DO_LOGOUT shell scriptfile for using multiuser correctly with DOpus5
  2. by: Jason Straight (jrstrai@freeway.net)
  3. IRC: codesmith
  4.  
  5. Introduction:
  6.  
  7.     Have you tried to use multiuser with Dopus5 and notice that while it
  8.     will show a user as being logged in, multiuser will not let them access
  9.     files thru Dopus that they should have access too?
  10.  
  11.     ie. you login as root, and still cannot access your entire system thru
  12.     dopus?
  13.  
  14.     the reason that is is that Dopus has task called DO_LAUNCHER that is
  15.     separated from Dopus, so if you call LOGOUT from Dopus you are only logging
  16.     in to that task, and not the entire Dopus GUI!
  17.  
  18.     ie. you have a user menu selection for logout gui. it will log out the
  19.     task that called logout - which is DO_LOGOUT, and dopus will still be
  20.     whoever was logged in before dopus was loaded.
  21.     
  22.     
  23.     The fix for this is to call logout for both DO_LAUNCHER, and dopus itself.
  24.  
  25.     This is a simple script file to take the hassle out for you.
  26.  
  27. INSTALLATION:
  28.  
  29.     The best way to do this is to create a user 'guest' with no passwd.
  30.     you then call 'login guest' in your startup sequence before the loadwb
  31.     command.
  32.  
  33.     (I suspect this will only work for those who use Dopus as a WB replacement)
  34.  
  35.     after the loadWB (the DO_LAUNCHER task will be created) you log guest into
  36.     the DO_LAUNCHER task by 'login guest task DO_LAUNCHER'
  37.  
  38.     now user guest will be able to access/launch only files guest has access to
  39.     which is basically nothing on my system.
  40.  
  41.     best way to do this is:
  42.  
  43.     1) copy DO_LOGOUT to S:
  44.     2) mprotect s:DO_LOGOUT srwed group r other r
  45.     3) put 'login >nil: guest GLOBAL' before loadwb
  46.     4) put 'login >nil: guest task DO_LAUNCHER GLOBAL' after loadwb
  47.     5) add a user menu selection 'LOGOUT' to execute s:DO_LOGOUT
  48.     6) edit do_logout file.  Change C2: to your mufs commands path.
  49.  
  50.     done.
  51.  
  52.     you may substitute guest for any user that you want logged in, but
  53.     remember that if that user has a password you will be asked for it twice,
  54.     unless it's root.
  55.  
  56.     if that user has a passwd add the option GIU to both logins aswell, or it
  57.     will cause your shell/window to be opened on every startup.
  58.  
  59.     now when you reboot, DOPUS will correctly work with mufs!
  60.     when you want to login another user to Dopus just choose logout from menu.
  61.  
  62.  
  63.     NOTE: if you use AMI-TCP and it's in your path before your multiuser
  64.     commands it will call amitcp's login instead, so specify a path in your
  65.     startup, scriptfile to your mufs commands. ie. 'c2:login' to make sure you
  66.     call the mufs login command.
  67.